<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ice="http://www.icesoft.com/icefaces/component"	  
      xmlns:s="http://jboss.org/schema/seam/taglib">
<h:head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>JBoss Suites: Seam Framework</title>
    <link href="css/screen.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
<f:view>
<div id="document">
	<div id="header">
		<div id="title"><img src="img/hdr.title.gif" alt="JBoss Suites: seam framework demo"/></div>
	</div>
	<div id="container">
		<div id="sidebar">
            <h:form id="login">
			<fieldset>
				<div>
					<h:outputLabel for="username">Login Name</h:outputLabel>
					<h:inputText id="username" value="#{identity.username}" style="width: 165px;"/>
					<div class="errors"><h:message for="username"/></div>
				</div>
				<div>
					<h:outputLabel for="password">Password</h:outputLabel>
					<h:inputSecret id="password" value="#{identity.password}" style="width: 165px;"/>
				</div>
				<div class="errors"><h:messages globalOnly="true"/></div>
				<div class="buttonBox"><h:commandButton id="login" action="#{identity.login()}" value="Account Login"
				    styleClass="button"/></div>
				<div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
                <div class="subnotes">
                    Or use a demo account:
                    <ul>
                        <li>gavin/foobar</li>
                        <li>demo/demo</li>
                    </ul>
                </div>
			</fieldset>
            </h:form>
		</div>
		<div id="content">
			<div class="section">
				
			    <h1>About this example application</h1>
			    
			    <p>
			       This sample application demonstrates how easy it is to develop stateful web 
			       applications using JBoss Seam and <a href="http://icefaces.org">ICEfaces</a>. Just register, login, and book a room to  
			       see Seam in action. Throughout the application you'll see popup links like 
			       the ones at the bottom of this page. Click them to see how the application 
			       works under the hood.
                </p>
			    
			    <p>
			       Note: Please do NOT enter personal information or your credit card number in 
			       this sample application.
			    </p>
			    
			    <p>
			       <a href="#" onclick="window.open('exp/introExp.html','exp','width=752,height=500,scrollbars=yes');">
			          What is JBoss Seam with ICEfaces?
			       </a>
                </p>
			    
			    <p>
			       <a href="#" onclick="window.open('exp/loginExp.html','exp','width=752,height=500,scrollbars=yes');">
			          What happens when I login?
			       </a>
                </p>
								
			</div>
		</div>
	</div>
	<div id="footer">Created with JBoss EJB 3, Seam, JSF 2 and ICEFaces</div>
</div>
</f:view>
</h:body>
</html>
